package com.alibaba.otter.node.etl.load.loader.mq.rabbit.provider;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DefaultContentEncodingProvider implements ContentEncodingProvider {

    private Charset charset = StandardCharsets.UTF_8;

    @Override
    public Object provide(Object message) {
        return charset.name();
    }
}
